home *** CD-ROM | disk | FTP | other *** search
- defineps drawPetriDish(float width, halfWidth, radius, petriRed, petriGreen, petriBlue)
- 1 setalpha
- 1.0 setgray
- 0 0 width width rectfill
-
- 0.0 setgray
- 2 setlinewidth
- 0 0 moveto
- width 0 lineto
- width width lineto
- 0 width lineto
- 0 0 lineto
- closepath
- stroke
-
- halfWidth halfWidth translate
- 0.0 setgray
- 1.0 setalpha
- 2.0 setlinewidth
- 0 0 radius 0 360 arc
- gsave
- petriRed petriGreen petriBlue setrgbcolor
- fill
- grestore
- stroke
- endps
-
- defineps drawGrid(float width, halfWidth, radius, spacing)
- 0.0 setalpha
- 1.0 setgray
- 0 0 width width rectfill
-
- halfWidth halfWidth translate
- 0.0 setlinewidth
- 0 0 radius 0 360 arc
- clip
-
- gsave
- newpath
- 1 setalpha
- 0.3333 setgray
- 0 halfWidth neg translate
- 0 spacing halfWidth {0 moveto 0 width rlineto} for
- spacing spacing halfWidth {neg 0 moveto 0 width rlineto} for
- stroke
- grestore
-
- gsave
- newpath
- 1 setalpha
- 0.3333 setgray
- halfWidth neg 0 translate
- 0 spacing halfWidth {0 exch moveto width 0 rlineto} for
- spacing spacing halfWidth {neg 0 exch moveto width 0 rlineto} for
- stroke
- grestore
- endps
-
- defineps drawSpot(float width, halfWidth, radius, red, green, blue)
- 0.0 setalpha
- 1.0 setgray
- 0 0 width width rectfill
-
- halfWidth halfWidth translate
- 0.0 setlinewidth
- 1.0 setalpha
- red green blue setrgbcolor
- 0 0 radius 0 360 arc
- fill
- endps
-
- defineps drawCursor()
- 0.0 setalpha
- 1.0 setgray
- 0 0 16.0 16.0 rectfill
-
- 1 setalpha
- 0 setgray
- 0.0 setlinewidth
-
- 0 8.5 moveto
- 16 8.5 lineto
- 8.5 0 moveto
- 8.5 16 lineto
- stroke
- endps
-
-